package com.zaoniao.enstudy.infrastructure.convert;

import com.zaoniao.enstudy.domain.entity.ExamPaper;
import com.zaoniao.enstudy.infrastructure.po.ExamPaperPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ExamPaperCrt {

    ExamPaperCrt INSTANCE = Mappers.getMapper(ExamPaperCrt.class);

    ExamPaper po2do(ExamPaperPo examPaperPo);

    ExamPaperPo do2po(ExamPaper examPaper);

    List<ExamPaper> po2doList(List<ExamPaperPo> examPaperPos);
}
